package com.code.controller;

import com.code.service.TestService;
import com.code.util.ResultData;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 测试控制类
 *
 * @author ww
 * @date 2018/9/6
 */
@RestController
@RequestMapping(value = "/test")
@Api(value = "测试接口")
public class TestController {

    private final TestService testService;

    public TestController(TestService testService) {
        this.testService = testService;
    }

    @PostMapping("/postBody")
    public ResultData test(List<String > data){
        return ResultData.success(data);
    }
}
